package com.wing.cabinet.model.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 盘验结果生成的订单明细
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cab_checked_result_order_detail")
public class CheckedResultOrderDetail extends BaseEntity<CheckedResultOrderDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 盘验订单id
     */
    private Long orderId;

    /**
     * 盘验结果id
     */
    private Long resultId;

    public enum IsSync implements IEnum<Integer> {

        /**
         * 未同步
         */
        no(0,"未同步"),
        /**
         * 已同步
         */
        yes(1,"已同步");

        private int code;
        private String desc;

        IsSync(int code,String desc){
            this.code=code;
            this.desc=desc;
        }

        @Override
        public Integer getValue(){
            return this.code;
        }

        public String getDesc(){
            return this.desc;
        }
    }
    private CheckedResultOrderDetail.IsSync isSync;

    private String orderUniqCode;

    /**
     * 企业编码
     */
    private String enterpriseCode;
    /**
     * 渠道编号
     */
    private String channelCode;
}
